//
//  Chapter2ViewController.h
//  OpenGLES_Learning
//
//  Created by Mac Center on 7/26/13.
//  Copyright (c) 2013 Mac Center. All rights reserved.
//

//#import <UIKit/UIKit.h>
#import <GLKit/GLKit.h>

@class AGLKVertexAttribArrayBuffer;

@interface Chapter3ViewController : GLKViewController
{
    GLuint      vertextBufferID;

    GLKTextureInfo      *textureInfo0;
    GLKTextureInfo      *textureInfo1;
}

@property (strong, nonatomic) GLKBaseEffect                     *baseEffect;
@property (strong, nonatomic) AGLKVertexAttribArrayBuffer       *vertexBuffer;
@property (strong, nonatomic) AGLKVertexAttribArrayBuffer       *vertexBuffer2;
@property (strong, nonatomic) GLKTextureInfo      *textureInfo0;

@property (nonatomic) BOOL shouldUseLinearFilter;
@property (nonatomic) BOOL shouldAnimate;
@property (nonatomic) BOOL shouldRepeatTexture;
@property (nonatomic) GLfloat sCoordinateOffset;


- (IBAction)takeSCoordinateOffsetFrom:(UISlider *)sender;
- (IBAction)takeShouldRepeatTextureFrom:(UISwitch *)sender;
- (IBAction)takeShouldAnimateFrom:(UISwitch *)sender;
- (IBAction)takeShouldUseLinearFilterFrom:(UISwitch *)sender;
@end
